#import "LocationViewController.h"
#import "ProvinceAndCity.h"
@implementation LocationViewController

-(void) viewDidLoad{
	provinces = [[ProvinceAndCity alloc] init];
	[picker setDataSource: provinces];
	[picker setDelegate: provinces];
	provinces.picker = picker;
	[provinces selectPrefer];
}


- (void)viewDidUnload {
	[picker release];
	[provinces release];
}

- (void)dealloc {
	[provinces release];
	[picker release];
    [super dealloc];
}

-(IBAction) confirm{
	[provinces saveCurrent];
	[self.navigationController popViewControllerAnimated: YES];
}
@end
